#ifndef QTBOX2DTEST_H
#define QTBOX2DTEST_H

#include <QtGui/QMainWindow>
#include <QVBoxLayout>
#include "ui_qtbox2dtest.h"

class QtBox2DTest : public QMainWindow
{
	Q_OBJECT

public:
	QtBox2DTest(QWidget *parent = 0, Qt::WFlags flags = 0);
	~QtBox2DTest();

	QMenu* getCreateMenu();
	QMenu* getEditMenu() const { return ui.menuEdit; }
signals:
	void newFile();
	void save();
	void saveAs();
	void load();

	void undo();
	void redo();
	void enableUndo(bool);
	void enableRedo(bool);

	void copy();
	void cut();
	void paste();
	void showImageDlg();
	void deleteItem();

	void start(bool);
	void createTriggered ( QAction * action );
public slots:
	void changeProperties(const QList<QWidget*>& widgets);

	void polygonTriggered(QAction* action);
private:
	Ui::QtBox2DTestClass ui;
	QWidget* mVerticalLayoutWidget;
	QVBoxLayout *mVerticalLayout;

	//QAction* mPolygonAction;
};

#endif // QTBOX2DTEST_H
